/*
 * @Descripttion: 
 * @version: 
 * @Author: Jun
 * @Date: 2021-05-24 14:20:45
 * @LastEditors: Jun
 * @LastEditTime: 2021-06-10 14:56:08
 */
export const routes = [{
    path: "/",//登录
    alias: "/login",
    name: "login",
    meta: { interceptors: true },//不需要拦截
    component: () => import("views/login/login")
}, {
    path: "/register",//注册
    name: "register",
    meta: { interceptors: true },//不需要拦截
    component: () => import("views/register/register")
}, {
    path: "/home",//首页
    name: "home",
    component: () => import("views/home/home")
}, {
    path: "/examDetails",//考试详情页
    name: "examDetails",
    props:(route)=>{
        return {
            id:route.query.id
        }
    },
    component: () => import("views/examDetails/examDetails")
}, {
    path: "/signUp",//报名
    name: "signUp",
    props:(route)=>{
        return {
            eid:route.query.eid,
            data:route.query.data
        }
    },
    component: () => import("views/signUp/signUp")
}, {
    path: "/signUpList",//报名列表页
    name: "signUpList",
    component: () => import("views/signUpList/signUpList")
}, {
    path: "/pay",//缴费页
    name: "pay",
    props:(route)=>{
        return {
            id:route.query.id
        }
    },
    component: () => import("views/pay/pay")
}, {
    path: "/user",//我的信息
    name: "user",
    component: () => import("views/user/user")
}, {
    path: "/remove",//删除页
    name: "remove",
    component: () => import("views/remove/remove")
},{
    path: "*",//404
    name: "404",
    component: () => import("views/404/404")
}]